package com.cz.run.beans.mysql;

import com.baomidou.mybatisplus.enums.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 身份认证
 * </p>
 *
 * @author CAIYJ
 * @since 2018-05-23
 */
@TableName("user_identity_auth")
public class UserIdentityAuth extends Model<UserIdentityAuth> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 身份证号
     */
    private String idcard;
    /**
     * 真实姓名
     */
    @TableField("real_name")
    private String realName;
    /**
     * 地区编码
     */
    @TableField("addr_code")
    private String addrCode;
    /**
     * 出生日期
     */
    private String birth;
    /**
     * 1：男；0：女
     */
    private Integer sex;
    /**
     * 身份证位数
     */
    private Integer length;
    /**
     * 身份证最后一位
     */
    @TableField("check_bit")
    private String checkBit;
    /**
     * 身份证所在地
     */
    private String addr;
    /**
     * 订单号
     */
    @TableField("order_sign")
    private String orderSign;
    /**
     * 返回结果代码
     */
    private String code;
    /**
     * 返回结果详情
     */
    private String info;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;

    @TableField("user_id")
    private Integer userId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getAddrCode() {
        return addrCode;
    }

    public void setAddrCode(String addrCode) {
        this.addrCode = addrCode;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public String getCheckBit() {
        return checkBit;
    }

    public void setCheckBit(String checkBit) {
        this.checkBit = checkBit;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getOrderSign() {
        return orderSign;
    }

    public void setOrderSign(String orderSign) {
        this.orderSign = orderSign;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserIdentityAuth{" +
                ", id=" + id +
                ", idcard=" + idcard +
                ", realName=" + realName +
                ", addrCode=" + addrCode +
                ", birth=" + birth +
                ", sex=" + sex +
                ", length=" + length +
                ", checkBit=" + checkBit +
                ", addr=" + addr +
                ", orderSign=" + orderSign +
                ", code=" + code +
                ", info=" + info +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                "}";
    }
}
